<?php

namespace App\Model;

class ActionLog extends BaseModel
{
    protected $table = 'action_log';

    public static function addLog($action, $botId, $steamId, $errorMsg)
    {
        $model = new self();
        $model->action = $action;
        $model->bot_id = $botId;
        $model->steam_id = $steamId;
        $model->error_msg = $errorMsg;
        return $model->save();
    }
}